import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//不能存在两个createPinia 推荐直接在main.js中添加
import {createPinia} from "pinia"
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import {install} from "vue3-recaptcha-v2"
import 'element-plus/dist/index.css'
import "./css/tailwindcss.css"
import "./css/common.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(install,{sitekey:"6Le9j_gpAAAAAN_Lo65ebqsJSD7UEtIJxLVMy2iu",cnDomains:true});
app.use(ElementPlus);
app.use(pinia).use(router).mount('#app')
